﻿using FluentNHibernate.Mapping;

namespace ZQNB.Entity.Accounts
{
    public class AccountMap : ClassMap<Account>
    {
        public AccountMap()
        {
            //没有跟任何其他的模型建立关系
            Table("Lib_Accounts_Account");
            Id(x => x.Id).GeneratedBy.GuidComb();

            Map(x => x.LoginName);
            Map(x => x.Email);
            Map(x => x.CustomNo);
            Map(x => x.Password);
            Map(x => x.PasswordFormat);
            Map(x => x.PasswordSalt);
            Map(x => x.IsLocked);
            Map(x => x.CreateDate);

            Map(x => x.FromSource);
            Map(x => x.AccountPk);
            Map(x => x.OrgPk);
            Map(x => x.UserPk);
        }
    }
}
